package org.example.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.example.entity.Pubcomment;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author scs
 * @since 2025-03-05
 */
@Mapper
public interface PubcommentMapper extends BaseMapper<Pubcomment> {

    Double avgScore(@Param("pid") Integer pid);
    Integer countScore(@Param("pid") Integer pid, @Param("score") Integer score);

}
